/// @class : email_notice_setting_model
/// @date : 2023-03-09 18:38
/// @name : LFC
/// @description :
class EmailNoticeSettingModel {
  String? msg;
  num? code;
  Data? data;

  EmailNoticeSettingModel({this.msg, this.code, this.data});

  EmailNoticeSettingModel.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class Data {
  dynamic searchValue;
  String? createBy;
  String? createTime;
  String? updateBy;
  dynamic updateTime;
  String? remark;
  Params? params;
  num? settingsId;
  num? membersId;
  String? membersNo;
  String? membersName;
  dynamic emailNewQuote; //	用戶電郵_新的報價
  dynamic emailQuoteSts; //用戶電郵_報價狀態更新
  dynamic emailExpert; //	用戶電郵_專家留言
  dynamic informAll; //通知_所有推送通知
  dynamic informNewQuote; //通知_新的報價
  dynamic informQuoteSts; //通知_報價狀態更新
  dynamic informExpert; //通知_專家留言
  dynamic informSystem; //通知_系统通知
  dynamic smsAll; //短讯_所有推送通知
  dynamic smsQuoteSts; //短讯_報價狀態更新
  dynamic smsAppointment; //短讯_預約成功
  String? delFlag;
  num? version;

  Data(
      {this.searchValue,
      this.createBy,
      this.createTime,
      this.updateBy,
      this.updateTime,
      this.remark,
      this.params,
      this.settingsId,
      this.membersId,
      this.membersNo,
      this.membersName,
      this.emailNewQuote,
      this.emailQuoteSts,
      this.emailExpert,
      this.informAll,
      this.informNewQuote,
      this.informQuoteSts,
      this.informExpert,
      this.informSystem,
      this.smsAll,
      this.smsQuoteSts,
      this.smsAppointment,
      this.delFlag,
      this.version});

  Data.fromJson(Map<String, dynamic> json) {
    searchValue = json['searchValue'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    remark = json['remark'];
    params =
        json['params'] != null ? new Params.fromJson(json['params']) : null;
    settingsId = json['settingsId'];
    membersId = json['membersId'];
    membersNo = json['membersNo'];
    membersName = json['membersName'];
    emailNewQuote = json['emailNewQuote'];
    emailQuoteSts = json['emailQuoteSts'];
    emailExpert = json['emailExpert'];
    informAll = json['informAll'];
    informNewQuote = json['informNewQuote'];
    informQuoteSts = json['informQuoteSts'];
    informExpert = json['informExpert'];
    informSystem = json['informSystem'];
    smsAll = json['smsAll'];
    smsQuoteSts = json['smsQuoteSts'];
    smsAppointment = json['smsAppointment'];
    delFlag = json['delFlag'];
    version = json['version'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['searchValue'] = this.searchValue;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['remark'] = this.remark;
    if (this.params != null) {
      data['params'] = this.params!.toJson();
    }
    data['settingsId'] = this.settingsId;
    data['membersId'] = this.membersId;
    data['membersNo'] = this.membersNo;
    data['membersName'] = this.membersName;
    data['emailNewQuote'] = this.emailNewQuote;
    data['emailQuoteSts'] = this.emailQuoteSts;
    data['emailExpert'] = this.emailExpert;
    data['informAll'] = this.informAll;
    data['informNewQuote'] = this.informNewQuote;
    data['informQuoteSts'] = this.informQuoteSts;
    data['informExpert'] = this.informExpert;
    data['informSystem'] = this.informSystem;
    data['smsAll'] = this.smsAll;
    data['smsQuoteSts'] = this.smsQuoteSts;
    data['smsAppointment'] = this.smsAppointment;
    data['delFlag'] = this.delFlag;
    data['version'] = this.version;
    return data;
  }
}

class Params {
  Params();

  Params.fromJson(Map<String, dynamic> json) {}

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    return data;
  }
}
